package com.gxuwz.dao;

import com.gxuwz.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by h on 2017/11/21.
 */
public interface UserDao extends MongoRepository<User,Integer> {

    User findByUsername(String username);

    User findByUsernameAndPassword(String username,String password);

}
